package com.hnguigu.health.houduan.lq.service_lq.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hnguigu.health.houduan.lq.service_lq.TFollowupjournalService;
import com.hnguigu.health.mapper.TFollowupjournalMapper;
import com.hnguigu.health.pojo.TFollowupjournal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TFollowupjournalServiceImpl implements TFollowupjournalService {
    @Autowired(required = false)
    TFollowupjournalMapper tFollowupjournalMapper;

    @Override
    public int deleteByTmerber(String termer) {
        return tFollowupjournalMapper.deleteByTmerber(termer);
    }

    @Override
    public int updatetfinish(String tmerber) {
        return tFollowupjournalMapper.updatetfinish(tmerber);
    }

    @Override
    public int insertSelective(TFollowupjournal record) {
        return tFollowupjournalMapper.insertSelective(record);
    }

    @Override
    public PageInfo<TFollowupjournal> selectAllTFollow(int page, int num, String content) {
        PageHelper.startPage(page, num);
        return new PageInfo<>(tFollowupjournalMapper.selectAllTFollow(content));
    }

    @Override
    public PageInfo<TFollowupjournal> selectAllTfollwBytfinsh(int page, int num, String content) {
        PageHelper.startPage(page, num);
        return new PageInfo<>(tFollowupjournalMapper.selectAllTfollwBytfinsh(content));
    }
}
